import request from "./request";

// 获取作战能力列表
export const getCapacityList = (form) => {
  return request({
    method: "GET",
    url: "/capacity/list",
    params: form,
  });
};

//获取表头
export const getTableColumnList = () => {
  return request({
    method: "GET",
    url: "/capacity/columnList",
  });
};

// 添加作战能力
export const saveCapacityLevel = (form) => {
  return request({
    method: "POST",
    url: "/capacity/save",
    data: form,
  });
};

// 编辑作战能力
export const editCapacityLevel = (form) => {
  return request({
    method: "POST",
    url: "/capacity/edit",
    data: form,
  });
};

// 删除作战能力
export const delCapacityLevelone = () => {
  return request({
    method: "GET",
    url: "/capacity/list",
  });
};

// 获取一级能力名称
export const getCapacityNameList = (form) => {
  return request({
    method: "GET",
    url: "/capacity/first/list",
    params: form,
  });
};

// 编辑
export const editCapacitySave = (form) => {
  return request({
    method: "POST",
    url: "/capacity/type/save",
    data: form,
  });
};
// 删除
export const delCapacity = (form) => {
  return request({
    method: "GET",
    url: "/capacity/delete",
    params: form,
  });
};
